package com.dianxin.farm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
* <p>
    * 分红记录
    * </p>
*
* @author xukai
* @since 2020-11-30
*/
    @Data
        @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    @ApiModel(value="ShareBill对象", description="分红记录")
    public class ShareBill implements Serializable {

    private static final long serialVersionUID = 1L;

            @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer orderId;

    private Integer customerId;

            @ApiModelProperty(value = "金额变化业务类型1--分红  2--提现 ")
    private Integer type;

            @ApiModelProperty(value = "业务变化金额，可以为负数")
    private BigDecimal money;

    private LocalDateTime createTime;

            @ApiModelProperty(value = "分红编号")
    private Long billCode;


}
